#拆分
from dotenv import load_dotenv
load_dotenv()
from langchain.chains.question_answering.map_reduce_prompt import system_template
from langchain.chains.summarize.refine_prompts import prompt_template

from LangChainModel4 import human_template


#导入聊天消息类模板
from langchain.prompts import(
ChatPromptTemplate,
SystemMessagePromptTemplate,
HumanMessagePromptTemplate,
)
#模板的构建
system_template = "你是一个翻译学家，擅长将{input_language}语言翻译成{output_language}语言."
system_message_prompt = SystemMessagePromptTemplate.from_template(system_template)

human_template = "{text}"
human_message_prompt = HumanMessagePromptTemplate.from_template(human_template)

prompt_template = ChatPromptTemplate.from_template([system_message_prompt, human_message_prompt])

#格式化提示消息生成提示

